package com.dz.lm.service.comp.account;

import com.dz.lm.common.exception.ServiceException;
import com.dz.lm.domain.compaccount.CompAccount;

import javax.sql.rowset.serial.SerialException;

public interface CompAccountService {
    /**
     * 添加公司账户
     * @param compId
     * @param userId
     * @param type
     * @param userName
     * @param password
     * @return
     * @throws SerialException
     */
    int add(int compId , int userId , int type ,String userName , String password )throws SerialException;

    /**
     * 公司账户登录
     * @param uName
     * @param password
     * @return
     * @throws ServiceException
     */
    CompAccount get(String uName ,String password) throws ServiceException;

    /**
     * 查重
     * @param userName
     * @return
     * @throws ServiceException
     */
    int checking(String userName) throws ServiceException;

}
